import request from '@/utils/request';

// 列表查询
export function getDataList() {
  return request({
    url: `/jjxt/bureauFaultMajorConfig/`,
    method: 'get'
  });
}

// 保存或更新
export function updateDataList(data) {
  return request({
    url: `/jjxt/bureauFaultMajorConfig/`,
    method: 'post',
    data
  });
}

// 按ID状态删除
export function deleteData(data) {
  return request({
    url: `/jjxt/bureauFaultMajorConfig/deleteFlagByIds`,
    method: 'post',
    data
  });
}

// 排序移动
export function sortMoveData(data) {
  return request({
    url: `/jjxt/bureauFaultMajorConfig/move`,
    method: 'post',
    data
  });
}
